import java.util.Arrays;
import java.util.*;
class Test{
           public static void main(String[] args)
		   { 
                
			 List<Emp> col = new ArrayList<Emp>(); 
			 col.add(new Emp(5, "Frank"));
			 col.add(new Emp(1, "Jorge")); 
			 col.add(new Emp(6, "Bill")); 
			 col.add(new Emp(3, "Michel")); 
			 col.add(new Emp(7, "Simpson")); 
			 col.add(new Emp(4, "Clerk")); 
			 col.add(new Emp(8, "Lee")); 
			 col.add(new Emp(2, "Mark")); 
			 //Collections.sort(col);
			 Collections.sort(col,new Emp()); 
			 
			 printList(col);
			 
    } 
			 public static void printList(List<Emp> list) 
			 { System.out.println("EmpId\tName");
			 
			    for (Emp e: list)
			 {  System.out.println(e.getid() + "\t" + e.getname());
		    
             }
            }
 }
 
 
 